Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-817

API and Core contain types recognized as managed beans but declaring an illegal bean type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.0
    • 1.5.0
    • Core
    • None

    Description

      API and Core artifacts contain some types which are recognized as managed beans but in the same time they declare an illegal bean type, namely a parameterized type that contains a wildcard type parameter:

      • org.apache.deltaspike.core.util.Annotateds$AnnotatedCallableComparator
      • org.apache.deltaspike.core.util.Annotateds$AnnotatedConstructorComparator
      • org.apache.deltaspike.core.util.Annotateds$AnnotatedFieldComparator
      • org.apache.deltaspike.core.util.Annotateds$AnnotatedMethodComparator
      • org.apache.deltaspike.core.impl.exception.control.ExceptionHandlerComparator

      The spec is not clear what should happen in this case (although it would make sense to just ignore the type and log some warning), see also the corresponding issue:
      https://issues.jboss.org/browse/CDI-495

      I believe these beans should either be completely excluded from scanning (vetoed, etc.) or should have their set of bean types restricted.

      Attachments

        Activity

          People

            struberg Mark Struberg
            mkouba Martin Kouba
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: